import request from '@/utils/request'

// 查询慧光智慧广播列表
export function listBroadcast(query) {
  return request({
    url: '/iot/broadcast/list',
    method: 'get',
    params: query
  })
}

// 查询慧光智慧广播详细
export function getBroadcast(id) {
  return request({
    url: '/iot/broadcast/' + id,
    method: 'get'
  })
}

// 新增慧光智慧广播
export function addBroadcast(data) {
  return request({
    url: '/iot/broadcast',
    method: 'post',
    data: data
  })
}

// 修改慧光智慧广播
export function updateBroadcast(data) {
  return request({
    url: '/iot/broadcast',
    method: 'put',
    data: data
  })
}

// 删除慧光智慧广播
export function delBroadcast(id) {
  return request({
    url: '/iot/broadcast/' + id,
    method: 'delete'
  })
}
